package com.bootdo.lvyou.domain;

import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import com.bootdo.common.annotation.NotColumn;
import com.bootdo.common.fansheutils.FansheUtils;
import com.bootdo.common.fansheutils.JibenLei;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.haojiangbo.annotation.HapiFeild;


/**
 * 小程序公共参数配置
 * 
 * @author haojiangbo
 * @email 2100272728@qq.com
 * @date 2019-10-14 16:42:32
 */
 @JsonInclude(JsonInclude.Include.NON_NULL)
public class XcxConfig extends JibenLei {
	@NotColumn
	private static final long serialVersionUID = 1L;
	
	
	//id
	 @NotColumn 	@HapiFeild("id")
	private Long id;
	
	//appID
		@HapiFeild("appID")
	private String appId;
	
	//app_secret
		@HapiFeild("app_secret")
	private String appSecret;
	
	//商户号
		@HapiFeild("商户号")
	private String memchantNo;
	
	//支付key
		@HapiFeild("支付key")
	private String apiKey;
	
	//证书路径
		@HapiFeild("证书路径")
	private String bookPath;
	
	//用户ID
		@HapiFeild("用户ID")
	private Long userId;
	
	//用户名称
		@HapiFeild("用户名称")
	private String userName;
	
	//创建时间
		@HapiFeild("创建时间")
	private Date createTime;

    public XcxConfig(){
    
    	this.createTime = new Date();
    }


	/**
	 * 设置：id
	 */
	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * 获取：id
	 */
	public Long getId() {
		return id;
	}
	/**
	 * 设置：appID
	 */
	public void setAppId(String appId) {
		this.appId = appId;
	}
	/**
	 * 获取：appID
	 */
	public String getAppId() {
		return appId;
	}
	/**
	 * 设置：app_secret
	 */
	public void setAppSecret(String appSecret) {
		this.appSecret = appSecret;
	}
	/**
	 * 获取：app_secret
	 */
	public String getAppSecret() {
		return appSecret;
	}
	/**
	 * 设置：商户号
	 */
	public void setMemchantNo(String memchantNo) {
		this.memchantNo = memchantNo;
	}
	/**
	 * 获取：商户号
	 */
	public String getMemchantNo() {
		return memchantNo;
	}
	/**
	 * 设置：支付key
	 */
	public void setApiKey(String apiKey) {
		this.apiKey = apiKey;
	}
	/**
	 * 获取：支付key
	 */
	public String getApiKey() {
		return apiKey;
	}
	/**
	 * 设置：证书路径
	 */
	public void setBookPath(String bookPath) {
		this.bookPath = bookPath;
	}
	/**
	 * 获取：证书路径
	 */
	public String getBookPath() {
		return bookPath;
	}
	/**
	 * 设置：用户ID
	 */
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	/**
	 * 获取：用户ID
	 */
	public Long getUserId() {
		return userId;
	}
	/**
	 * 设置：用户名称
	 */
	public void setUserName(String userName) {
		this.userName = userName;
	}
	/**
	 * 获取：用户名称
	 */
	public String getUserName() {
		return userName;
	}
	/**
	 * 设置：创建时间
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	/**
	 * 获取：创建时间
	 */
	public Date getCreateTime() {
		return createTime;
	}


	@Override
	@JsonIgnore
	public List<HashMap<String, Object>> getFields() {
		// TODO Auto-generated method stub
		return FansheUtils.getFieldList(this);
	}


}
